<div class="contentArea">
    <div class="Item hr">
        <div class="current">添加小说</div>
    </div>
    <form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
            <tr>
                <th width="100">小说名称：</th>
                <td><input type="text" class="input" size="50" placeholder="请输入标题" name="data[title]"/></td>
            </tr>

            <tr>
                <th width="100">小说作者：</th>
                <td><input type="text" class="input" size="50" placeholder="请输入作者" name="data[author]"/></td>
            </tr>

            <tr>
                <th width="100">小说来源名称：</th>
                <td><input type="text" class="input" size="50" placeholder="请输入来源名称" name="data[source_addr]"/></td>
            </tr>

            <tr>
                <th width="100">小说来源网址：</th>
                <td><input type="text" class="input" size="50" placeholder="请输入来源网址" name="data[source_url]"/></td>
            </tr>

            <tr>
                <th width="100">小说简介：</th>
                <td><textarea class="jq_watermark" rows = "5" cols="68" name="data[intro]" placeholder="输入小说简介"></textarea></td>
            </tr>

            <tr>
                <th width="100">总字数：</th>
                <td><input type="text" class="input" size="50" placeholder="请输入字数" name="data[words_number]"/></td>
            </tr>

            <tr>
                <th width="100">选择分类：</th>
                <td>
                    <select name="data[class_id]">
                        <option value="">请选择分类</option>
                        <foreach name="class_list" item="val">
                            <option value="{$val.id}">{$val.class_name}</option>
                        </foreach>
                    </select>s
                </td>
            </tr>

            <tr>
                <th width="100">合适人群：</th>
                <td>
                    <input name="data[fit_crowd]" type="radio" checked value="0">男女都行</input>&nbsp;&nbsp;&nbsp;
                    <input name="data[fit_crowd]" type="radio" value="1">男</input>&nbsp;&nbsp;&nbsp;
                    <input name="data[fit_crowd]" type="radio" value="2">女</input>
                </td>
            </tr>

            <tr>
                <th width="100">上传封面：</th>
                <td>
                    <input type="file" id="cover" name="cover">
                </td>
                <div class="id_photos" >

                </div>
            </tr>

            <tr>
                <th width="100">小说标签：</th>
                <td><input type="text" class="input" size="50" placeholder="请输入标签" name="data[label]"/><a style="color: red;">（多个标签用"|"分割开，格式：标签1|标签2|标签3）</a></td>
            </tr>

            <tr>
                <th width="100">组合查询分类：</th>
                <td>
                    <select name="data[search_item_id]">
                        <option value="">请选择分类</option>
                        <foreach name="search_class" item="val">
                            <option value="{$val.id}">{$val.name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>

            <tr>
                <th width="100">组合查询字数组：</th>
                <td>
                    <select name="data[word_arr_id]">
                        <option value="">请选择字数组</option>
                        <foreach name="number_arr" item="val">
                            <option value="{$val.id}">{$val.name}</option>
                        </foreach>
                    </select>
                </td>
            </tr>

            <tr>
                <th width="100">是否审核通过：</th>
                <td>
                    <input name="data[is_pass]" type="radio" checked value="1">通过</input>&nbsp;&nbsp;&nbsp;
                    <input name="data[is_pass]" type="radio" value="0">不通过</input>&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </form>
    <div class="commonBtnArea">
        <button class="btn submit">提交</button>
    </div>
</div>

<script type="text/javascript" src="__PUBLIC__/javascripts/admin/layer/layer.js"></script>

<script type="text/javascript">
    $(".submit").click(function(){
        commonAjaxSubmit("{:U('Novel/insert')}");
    });

</script>

